package com.hysf.project1;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.aspectj.lang.annotation.Pointcut;
import org.springframework.stereotype.Component;

@Aspect
//@Component
public class Aspects {
	
	@Pointcut (value = "execution(* com.hysf.project1.PersonBizImpl.addPerson(..))")
	public void p1(){}
	@Before(value = "p1()")
	public void privilege(){
		System.out.println("权限校验");
	}
}
